package com.macro.mall.portal.service;

import com.macro.mall.portal.domain.Product;

import java.util.List;

/**
 * @Author：尚志豪
 * @Package：com.macro.mall.portal.service
 * @Project：mall-swarm-B
 * @name：ProductService
 * @Date：2024/11/1 17:26
 */
public interface ProductService {
    void preheatProducts(List<Long> productIds);

    List<Product> getPreheatedProducts();

    boolean checkStock(Long productId);

    void deductStock(Long productId);
}
